package com.darwin.user_server.entity.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result<T> {
    Integer stateCode;
    String msg;
    T data;
    List<T> dataList;

    public Result(T data) {
        this.data = data;
    }

    public Result(String msg,Integer stateCode) {
        this.msg = msg;
        this.stateCode=stateCode;
    }
}
